package com.ruoyi.face.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 出入人脸识别记录对象 inout_record
 *
 * @author syv_fire
 * @date 2025-03-26
 */
public class InoutRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long inOutRecordId;

    /**
     * 人员ID
     */
    @Excel(name = "人员ID")
    private Long personId;

    /**
     * 小区ID
     */
    @Excel(name = "小区ID")
    private Long communityId;

    /**
     * 进场时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "进场时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date inTime;

    /**
     * 出场时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "出场时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date outTime;

    /**
     * 入场拍照图片
     */
    @Excel(name = "入场拍照图片")
    private String inPic;

    /**
     * 出场图片
     */
    @Excel(name = "出场图片")
    private String outPic;

    /*小区名称*/
    private String communityName;

    /*人员名称*/
    private String userName;

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setInOutRecordId(Long inOutRecordId) {
        this.inOutRecordId = inOutRecordId;
    }

    public Long getInOutRecordId() {
        return inOutRecordId;
    }

    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    public Long getPersonId() {
        return personId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setInTime(Date inTime) {
        this.inTime = inTime;
    }

    public Date getInTime() {
        return inTime;
    }

    public void setOutTime(Date outTime) {
        this.outTime = outTime;
    }

    public Date getOutTime() {
        return outTime;
    }

    public void setInPic(String inPic) {
        this.inPic = inPic;
    }

    public String getInPic() {
        return inPic;
    }

    public void setOutPic(String outPic) {
        this.outPic = outPic;
    }

    public String getOutPic() {
        return outPic;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("inOutRecordId", getInOutRecordId())
                .append("personId", getPersonId())
                .append("communityId", getCommunityId())
                .append("inTime", getInTime())
                .append("outTime", getOutTime())
                .append("inPic", getInPic())
                .append("outPic", getOutPic())
                .append("communityName", getCommunityName())
                .append("userName", getUserName())
                .toString();
    }
}
